<!DOCTYPE html>
<html lang="en">
<head>
  <title>基本信息</title>
  <meta charset="utf-8">
    <link rel="stylesheet" href="$gqt/admin/css/layui.css">
    <link rel="stylesheet" href="$gqt/admin/css/pro_build.css">
    <script src="http://lib.sinaapp.com/js/jquery/1.4.2/jquery.min.js"></script>
    <script src="/GQT/public/static/admin/js/layui.js"></script>
<style>
     
</style>
</head>
<body style="border-top-width: 4.5%;  margin-top: 4.5%;">
<form class="layui-form"  action="" style="margin-left: 20%;" >
    <div class="layui-form-item">
    <label class="layui-form-label">姓名</label>
    <div class="layui-input-block">
      <input type="text" name="name" required  lay-verify="required" placeholder="请输入姓名" value="{$tea_id[0]['name']}" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">性别</label>
    <div class="layui-input-block" >
     <input type="text" name="sex" value="{$tea_id[0]['sex']}" class="layui-input" >
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">账号</label>
    <div class="layui-input-inline">
      <input type="text" name="tea_id" required lay-verify="required" placeholder="请输入账号" value="{$tea_id[0]['tea_id']}" autocomplete="on" class="layui-input">
    </di
    v>

  </div>

<div class="layui-form-item">
    <label class="layui-form-label">密码</label>
    <div class="layui-input-inline">
      <input type="text" name="password" required lay-verify="required" placeholder="请输入密码" value="{$tea_id[0]['password']}" autocomplete="on" class="layui-input">
    </div>
  </div>

<div class="layui-form-item">
    <label class="layui-form-label">职务</label>
    <div class="layui-input-block">
      <input type="text" name="dupt" required  lay-verify="required" value="{$tea_id[0]['dupt']}"  autocomplete="off" class="layui-input">
    </div>
  </div>


<div class="layui-form-item">
    <label class="layui-form-label">系别</label>
    <div class="layui-input-block">
    <input type="text" name="dept" required  lay-verify="required" placeholder="" value="{$tea_id[0]['dept']}" autocomplete="off" class="layui-input">
    </div>  
    </div>
  </div>


  <div class="layui-form-item">
    <label class="layui-form-label">教师职称</label>
    <div class="layui-input-block">
      <input type="text" name="title" required  lay-verify="required" placeholder="请输入教师职称" value="{$tea_id[0]['title']}" autocomplete="off" class="layui-input">
    </div>
  </div>
   
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn layui-btn-radius" lay-submit lay-filter="formDemo"  type="submit">更新</button>
    </div>
  </div>
</form>
 
<script>
//Demo
layui.use('form', function(){
  var form = layui.form;
  
  //监听提交
  form.on('submit(formDemo)', function(data1){
                $.ajax({
                type: "post",
                url: "update_underinfo",
                data:data1.field,
                datatype: "application/text",
                success: function (data) {
                    if(data){
                      alert("修改成功");
                    }
                  }
                 });
                return false;
            });
        });

</script>
</body>
</html>
